package web

import "net/http"

type Route struct {
}

// 路由-handler映射
func (r *Route) LoadController() {
	c := Controller{}
	http.HandleFunc("/", c.Index)
	http.HandleFunc("/task", c.GetTask)
	http.HandleFunc("/task/update", c.UpdateTask)
	http.HandleFunc("/nodes", c.GetNodes)
	http.HandleFunc("/node", c.GetNode)
	http.HandleFunc("/node-task", c.GetNodeTask)
}
